Class NaturalComparer<T>

A natural generic IComparer for an IComparable<T> item type
Type parameters:
T
Constraints:
T : System.IComparable<T>

Implements

System.Collections.Generic.IComparer<T>

Bases

object

Constructor overview

NaturalComparer<T>()

Method overview

Compare(T item1, T item2) ,
Equals(object obj), Inherited from object ,
Finalize(), Inherited from object ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
ToString(), Inherited from object

Constructor details

NaturalComparer<T>()

Method details

F int Compare(T item1, T item2) Compare two items
Returns:item1 <=> item2
Parameters:
item1:First item
item2:Second item